package cn.bass.marketing.common.constant;

import lombok.Data;

/**
 * Redis常量类
 *
 * @author YouAr
 */
@Data
public class RedisConstant {

    /**
     * 奖品中奖范围Redis key
     * 格式：prize_odds_scope
     */
    public static final String PRIZE_ODDS_SCOPE = "marketing:prize:odds:scope";

    /**
     * 策略Redis key
     * 格式：marketing:strategy:{strategyId}
     */
    public static final String MARKETING_STRATEGY = "marketing:strategy:%s";

    /**
     * 营销活动策略Redis key
     * 格式：marketing:activity:strategy:{activityId}
     */
    public static final String MARKETING_ACTIVITY_STRATEGY = "marketing:activity:strategy:%s";

    /**
     * 营销活动奖品范围Redis key
     * 格式：marketing:activity:prize:range:{activityId}:{prizeId}
     */
    public static final String MARKETING_ACTIVITY_STRATEGY_PRIZE_RANGE = "marketing:activity:prize:range:%s";

    /**
     * 营销活动奖品范围Redis key
     * 格式：marketing:activity:prize:range:map
     */
    public static final String MARKETING_ACTIVITY_STRATEGY_PRIZE_RANGE_MAP = "marketing:activity:prize:range:map:%s";

    /**
     * 策略规则Redis key
     * 格式：marketing:strategy:rule:{strategyId}
     */
    public static final String STRATEGY_RULE_KEY = "marketing:strategy:rule:%s";
}
